import request from "@/utils/request";

export function getCategoryNameList(data) {
	return request({
		url: "/python/getCategoryNameList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function addCategory(data) {
	return request({
		url: "/python/addCategory",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function updateCategory(data) {
	return request({
		url: "/python/updateCategory",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function deletCategory(data) {
	return request({
		url: "/python/deletCategory",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function getUserList(data) {
	return request({
		url: "/python/getUserList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}
